package edu.whu.puppygo.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import edu.whu.puppygo.base.BaseEntity;
import edu.whu.puppygo.config.OssConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @author guanruwang
 * @date 2023/11/8$
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
public class Pet extends BaseEntity {

    @ApiModelProperty("宠物名")
    private String name = "宠物名";

    @ApiModelProperty("宠物种类")
    private String kind;

    @ApiModelProperty("宠物品种")
    private String description;

    @ApiModelProperty("宠物年龄,以月为单位")
    @Min(0)
    @Max(200)
    private int age = 24;

    @ApiModelProperty("宠物性别")
    private String sex = "公";

    @ApiModelProperty("宠物体重")
    private String weight;

    @ApiModelProperty("是否绝育")
    private String sterilization = "false";

    @ApiModelProperty("日常活动时间")
    private String activityTime = "10小时";

    @ApiModelProperty("过敏或不适反应")
    private String allergy = "无";

    @ApiModelProperty("健康状况")
    private String health = "健康";

    @ApiModelProperty("是否注射狂犬疫苗")
    private String inoculation = "false";

    @ApiModelProperty("宠物照片URL")
    private String picture = OssConfig.getFullUrl() + OssConfig.getPetPicPath() + "default.jpg";

    @ApiModelProperty("上次除虫日期")
    private String disinfectTime = "1月2日";

    @ApiModelProperty("宠物生日")
    private String birthday = "1月1日";

    @ApiModelProperty("领养日期")
    private String adoptDate = "无";

    @ApiModelProperty("宠物主人ID")
    @JsonIgnore
    private long userId;
}
